package com.funning.dao;

import java.util.List;

import com.funning.bean.OfFuning;




public interface IFuningDAO {
	public List<OfFuning> getAllFuning();  
	
	public OfFuning getFuningById(long id);  
	
//	public List<OfFuning> getFuningByDesc(String ofDesc);
//	
//	public List<OfFuning> getFuningByTime(Date time);
//	
	public boolean insertFuning(OfFuning funing);   
	
	public int updateFuning(OfFuning funing);  
	
	public int deleteFuning(long id);
	
	/*
	 * 
	 * 查找最新更新的笑话
	 */
	public OfFuning getNewFuning();
	/**
	 * 查找到前三条的笑话
	 * @return
	 */
	List<OfFuning> getThreeFuning();
}
